package org.song.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.util.Date;

@ApiModel("用户弹幕留言实体")
@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
@Alias( value = "Message" )
public class Message {

    @ApiModelProperty( value = "主键" , notes = "主键")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @ApiModelProperty(value = "弹幕滚动时间" , notes = "弹幕滚动时间")
    private String time;

    @ApiModelProperty(value = "留言内容" , notes = "留言内容")
    private String messageContent;

    @ApiModelProperty(value = "留言发布时间" , notes = "留言发布时间")
    private Date createTime;

    @ApiModelProperty(value = "头像" , notes = "头像")
    private String avatar;

    @ApiModelProperty(value = "昵称" , notes = "昵称")
    private String nickname;
}
